← Back to issue list

snapcraft isn't context aware in displaying help text

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1990549
Type
issue
State
open
Author
~dilyn-corner
Labels
Created
2022-09-22 15:30:16.439040+00:00
Updated
2025-04-22 12:53:49.860977+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When using snapcraft 7.x and attempting to build a core20 base snap, the options available from snapcraft --help are in general not available when building the snap. For example, --verbosity is not a valid option when using snapcraft 7 to build a core20 base snap: dilyn@Ares:~work/test -> snapcraft --verbosity=verbose Starting Snapcraft 7.1.4.post49+git3a54031c Logging execution to '/root/.cache/snapcraft/log/snapcraft-20220922-112604.562413.log' Usage: snapcraft [OPTIONS] COMMAND [ARGS]... Try 'snapcraft -h' for help. Error: No such option: --verbosity Did you mean --version? I would expect that snapcraft --help would display context-aware options -- based on the base declared in the snapcraft.yaml for the snap I am building, it should display the flags which will govern its behavior in building said snap.

Evaluation history

No evaluation history available.